package com.hqq.thread.thread_pool;

/**
 * CoffeeMakingTask
 * Created by heqianqian on 2017/7/1.
 */
public class CoffeeMakingTask extends Task {

    private static final int TIME_PER_COFFEE = 100;

    public CoffeeMakingTask(int numCups) {
        super(numCups * TIME_PER_COFFEE);
    }

    @Override
    public String toString() {
        return String.format("%s %s", this.getClass().getSimpleName(), super.toString());
    }
}
